class UtilitySetting < ActiveRecord::Base

  def self.get_price
 	t = UtilityFunctions.current_time[0]
    if  t > 10 and t < 22
    	price = UtilitySetting.last.peak_price.to_f
    else
    	price = UtilitySetting.last.off_peak_price.to_f
    end
    return price
  end
end
